<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>时间和计算属性</title>
</head>
<body>
<div id="app">
  {{total}}
</div>

<script src="../vue.global.js"></script>
<script>
  const App = {
    data(){
      return {
        price: 10,
        count: 5,
      }
    },
    computed: {
      total(){
        return this.price * this.count
      }
    }
  }

  const vm = Vue.createApp(App).mount('#app');
</script>
</body>
</html>
